package com.ant.storage.service;

import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.DepDto;
import com.ant.storage.dto.PickingDto;
import com.ant.storage.pojo.AuditList;
import com.ant.storage.pojo.Picking;
import com.ant.storage.vo.PickingCensusVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author melon
 * @since 2022-10-28
 */
public interface IPickingService extends IService<Picking> {

    PageInfo<Picking> querylist(PickingDto dto);


    PageInfo<Picking> querylist2(PickingDto dto);


    Picking getPickingByID(Integer id);

    /**
     * 保存领取申请
     * @param picking
     * @return
     * @throws IOException
     */
    ResultVo savePicking(Picking picking) throws IOException;

    ResultVo pickingComplete(Picking picking);

    List<PickingCensusVo> findPickingCensus(DepDto dto);

    /**
     * 查询审核记录是存在
     * @param processInstanceId
     * @return
     */
    AuditList selectIsAudit(String processInstanceId, String user_id);

    PageInfo<Picking> getPickingDepList(PickingDto dto);

    Map<String, Object> getPickingByDepIdList(PickingDto dto);


}
